package com.mybatisplus.mp.pojo;

public class Son extends Father {
    Son(String name, int age) {
        super(name, age);
    }


    /*    Son(String name, int age) {
        super(name, age);
    }*/

    @Override
    public void f() {
        System.out.println("子类");
    }

    @Override
    public int getAge() {
        int i = super.getAge() + 1;

        return i;
    }


    public static void main(String[] args) {
        Son s = new Son("长大",3);
//        int age = super.getAge();
        System.out.println(s.getAge());
    }
}
